import java.util.Random;
import java.util.Scanner;

public class test {
    //猜数字游戏
    //使用random 和scanner
    public static void main(String[] args) {
        //生成随机数字
        Random random=new Random();
        int num=random.nextInt(100);
        //System.out.println(num);//打印随机数
        //scanner输入
        Scanner scanner=new Scanner(System.in);
        int i=scanner.nextInt();
        while (i!=num){
            if(i>num){
                System.out.println("大了");
            }
            else {
                System.out.println("小了");
            }
            i=scanner.nextInt();
        }
        System.out.println("猜对了");
    }
}
